// this is the command to launch the app in Chrome: open -a Google\ Chrome.app --args "--allow-file-access-from-files"

//var movies;

$('#home').on('touchend', function(event) {
    homepage();
});

/*$('#splash').on('touchend', function(event) {
    splash();
});

function splash() {
    //$.getJSON(baseUrl + listType + ".json?apikey=" + apiKey + "&page=" + page + "&callback=?", searchCallback);
     $('#splash').addClass('hidden');
}*/


function homepage() {
     $('#home').append('<div>Ciao!</div>');
}

/*function searchCallback(data) {
    $('#busy').hide();
    movies = data.movies;
    $.each(movies, function(index, movie) {
        $('#moviesList').append('<li><a href="moviedetails.html?id=' + movie.id + '">' +
        '<img src="' + movie.posters.thumbnail + '" class="list-icon">' +                       
        '<h4>' + movie.title + '</h4>' +
        '<p>' + movie.critics_consensus + '</p>' +
        '</li></li>');
    });
    $('#moviesList').listview('refresh');
}
*/